package ym.ecrm.core.domain.marketManagement;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import ym.ecrm.core.domain.base.BaseEntity;

/**
 * 申请印刷品类
 * @author fage
 *@version 1.0
 */
@Entity
@Table(name = "t_applyPrintPublication")
public class ApplyPrintPublication extends BaseEntity{
	
	/**
	 * recordCode 领用记录编号
	 */
	private String recordCode;
	/**
	 * printPublication 对应印刷品
	 */
	@ManyToOne(targetEntity = PrintPublication.class
			 ,cascade={CascadeType.PERSIST,CascadeType.MERGE})
	@JoinColumn(name="printPublicationId")
	private PrintPublication printPublication;
	/**
	 * quantity 数量
	 */
	private String quantity;
	/**
	 * use 用途
	 */
	private String use;
	/**
	 * user 领用人
	 */
	private String user;
	/**
	 * recipientsTime 领用时间
	 */
	private String recipientsTime;

	
	public String getRecordCode() {
		return recordCode;
	}
	public void setRecordCode(String recordCode) {
		this.recordCode = recordCode;
	}
	public PrintPublication getPrintPublication() {
		return printPublication;
	}
	public void setPrintPublication(PrintPublication printPublication) {
		this.printPublication = printPublication;
	}
	public String getQuantity() {
		return quantity;
	}
	public void setQuantity(String quantity) {
		this.quantity = quantity;
	}
	public String getUse() {
		return use;
	}
	public void setUse(String use) {
		this.use = use;
	}
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	public String getRecipientsTime() {
		return recipientsTime;
	}
	public void setRecipientsTime(String recipientsTime) {
		this.recipientsTime = recipientsTime;
	}

	
}
